/**
 * @Author: Wang chunsheng  email:2192138785@qq.com
 * @Date:   2022-03-16 17:09:28
 * @Last Modified by:   Wang chunsheng  email:2192138785@qq.com
 * @Last Modified time: 2022-03-28 18:51:00
 */

//  房间-房价维护

import request from '@projectName/utils/request'

export function roompriceIndex(data) {
  return request({
    url: '/diandi_place/room/roomprice/index',
    method: 'get',
    params: data
  })
}

export function roompriceView(id) {
  return request({
    url: `/diandi_place/room/roomprice/view/${id}`,
    method: 'get'
  })
}

export function roompriceCreate(data) {
  return request({
    url: '/diandi_place/room/roomprice/create',
    method: 'post',
    data: data
  })
}

export function roompriceUpdate(data) {
  return request({
    url: `/diandi_place/room/roomprice/update/${data.id}`,
    method: 'put',
    data: data
  })
}

export function roompricedelete(id) {
  return request({
    url: `/diandi_place/room/roomprice/delete/${id}`,
    method: 'delete'
  })
}

export function roompriceInit(data) {
  return request({
    url: '/diandi_place/room/roomprice/init',
    method: 'get',
    data: data
  })
}

